<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * author liangtang
 */
class Authority {
    /**
     * 判断是否登录
     * @return boolean
     */
    public function is_exist( $params )
    {
         if($params)
         {
            return true;
         }
         else
         {
            return  false;
         }
    }
    /**
     * 输入不合法，自动返回
     * @return 返回
     */
    public function goback()
    {
        echo "<script>location.href=".$_SERVER["HTTP_REFERER"]."</script>";
    }
}

/* End of file Authority.php */